package com.ruoyi.huoyun.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.huoyun.business.mapper.WaybillInfoMapper;
import com.ruoyi.huoyun.business.domain.WaybillInfo;
import com.ruoyi.huoyun.business.service.IWaybillInfoService;

/**
 * 运单详情Service业务层处理
 * 
 * @author mj
 * @date 2021-11-29
 */
@Service
public class WaybillInfoServiceImpl implements IWaybillInfoService 
{
    @Autowired
    private WaybillInfoMapper waybillInfoMapper;

    /**
     * 查询运单详情
     * 
     * @param waybillId 运单详情主键
     * @return 运单详情
     */
    @Override
    public WaybillInfo selectWaybillInfoByWaybillId(String waybillId)
    {
        return waybillInfoMapper.selectWaybillInfoByWaybillId(waybillId);
    }

    /**
     * 查询运单详情列表
     * 
     * @param waybillInfo 运单详情
     * @return 运单详情
     */
    @Override
    public List<WaybillInfo> selectWaybillInfoList(WaybillInfo waybillInfo)
    {
        return waybillInfoMapper.selectWaybillInfoList(waybillInfo);
    }

    /**
     * 新增运单详情
     * 
     * @param waybillInfo 运单详情
     * @return 结果
     */
    @Override
    public int insertWaybillInfo(WaybillInfo waybillInfo)
    {
        return waybillInfoMapper.insertWaybillInfo(waybillInfo);
    }

    /**
     * 修改运单详情
     * 
     * @param waybillInfo 运单详情
     * @return 结果
     */
    @Override
    public int updateWaybillInfo(WaybillInfo waybillInfo)
    {
        return waybillInfoMapper.updateWaybillInfo(waybillInfo);
    }

    /**
     * 批量删除运单详情
     * 
     * @param waybillIds 需要删除的运单详情主键
     * @return 结果
     */
    @Override
    public int deleteWaybillInfoByWaybillIds(String[] waybillIds)
    {
        return waybillInfoMapper.deleteWaybillInfoByWaybillIds(waybillIds);
    }

    /**
     * 删除运单详情信息
     * 
     * @param waybillId 运单详情主键
     * @return 结果
     */
    @Override
    public int deleteWaybillInfoByWaybillId(String waybillId)
    {
        return waybillInfoMapper.deleteWaybillInfoByWaybillId(waybillId);
    }
}
